package com.baor.controller;


import com.baor.service.OrdersService;
import com.baor.utils.AjaxResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.Map;

@RestController
@RequestMapping("/orders")
public class OrdersController {
    @Autowired
    private OrdersService ordersService;
    @RequestMapping("/userOrderList")
    public AjaxResult<?> userOrderList(@RequestBody Map<String, Object> params) {
        return this.ordersService.userOrderList(params);
    }
    @RequestMapping("/orderInfo")
    public AjaxResult<?> orderInfo(@RequestBody Map<String, Object> params) {
        return this.ordersService.orderInfo(params);
    }
}
